<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/2 0002
 * Time: 下午 4:48
 */
namespace app\common\model;

use think\Model;

class Productspecgroups extends Model{
    protected $resultSetType = 'collection';

    public function getSpec($specId){
        return self::where('id','=',$specId)->find();
    }

}